package com.zhouyu.advice;

import org.jetbrains.annotations.NotNull;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author yangjian
 */
public class TestBeforeAdvice implements MethodBeforeAdvice {

	@Override
	public void before(@NotNull Method method, @NotNull Object[] args, Object target) throws Throwable
	{
		System.out.println("调用之前: " + method.getName());
	}
}
